<?php


namespace app\validate;


class Upload extends BaseValidate
{
    protected $rule = [
        //3M
        'image'=>'require|fileSize:3145728|fileExt:jpg,jpeg,png,gif|fileMime:image/jpeg,image/png,image/gif'
    ];

    protected $message = [
        'image.require'=>'请上传图片',
        'image.fileSize' => '图片不能超过3M',
        'image.fileExt' => '只能上传jpg/png/gif图片',
        'image.fileMime' => '只能上传jpg/png/gif图片',
    ];

}